package com.java1234.jxc.config;



import groovy.json.JsonBuilder;
import org.springframework.web.servlet.view.AbstractView;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.util.Map;


public class MyJsonView extends AbstractView {


    @Override
    protected void renderMergedOutputModel(Map<String, Object> map, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {

        JsonBuilder jb = new JsonBuilder();
        PrintWriter out = httpServletResponse.getWriter();
       // out.print(jb.encode(map));
    }
}
